<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	    <style type="text/css">
	    	del{border-collapse: collapse;}
	    	.price{
	    		font-family:arial,verdana,sans-serif !important;
	    		letter-spacing: normal;
	    		line-height: 30px;
	    		white-space:normal;
	    	}
	    	.price em{color:#CC0000;}
	    </style>
	</head>
	<body>
		<!--页面导航-->
		<div class="alert alert-success" role="alert">
			商品管理&nbsp;>&nbsp;商品列表
		</div>
		<p>
			<a href="{{U('Goods/add')}}" class="btn btn-success btn-sm">添加商品</a>&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="" class="btn btn-warning btn-sm">批量删除</a>&nbsp;&nbsp;&nbsp;&nbsp;
		</p>
		<table class="table table-hover">
			<tr class="active">
			  <th width="20"><input type="checkbox" name="" id="" /></th>
			  <th width="90">商品ID</th>
			  <th>商品名称</th>
			  <th>点击次数</th>
			  <th>价格</th>
			  <th>库存</th>
			  <th>上架时间</th>
			  <th>列表图</th>
			  <th>商品货号</th>
			  <th width="280">操作</th>
			</tr>
			{{foreach from="$goodsData" value="$v"}}
			<tr>
				<td><input type="checkbox" name="" id="" /></td>
				<td>{{$v['goods_id']}}</td>
				<td>{{$v['goods_name']}}</td>
				<td>{{$v['click_count']}}</td>
				<td class="price">
					市场价  <em><b>¥</b><del>{{$v['market_price']}}</del></em> <br/>
					商城价 <em><b>¥</b>{{$v['shop_price']}}</em>
				</td>
				<td>{{$v['goods_number']}}</td>
				<td>{{date('Y-m-d',$v['add_time'])}}</td>
				<td><img src="{{$v['list_pic']}}" alt="" width="100" height="" /></td>
				<td>{{$v['goods_sn']}}</td>
				<td>
					<a href="{{U('Cargo/index',array('goods_id'=>$v['goods_id']))}}" class="btn btn-sm btn-info">货品列表</a>
					<a href="{{U('edit',array('goods_id'=>$v['goods_id'],'fid'=>$v['form_fid']))}}" class="btn btn-sm btn-primary">编辑</a>
					<a href="javascript:if(confirm('确认删除？')) location.href='{{U('del',array('goods_id'=>$v['goods_id']))}}';" class="btn btn-sm btn-danger">删除</a>
				</td>
			</tr>
			{{endforeach}}
		</table>
		<center>
			<div class="pagination">
				<ul>
					{{$page}}
				</ul>
			</div>
		</center>
	</body>
</html>